import { Dictionary, SettingType } from '@/interface/Basic'

export const order_settings: SettingType[] = [
  { label: '生产订单号', key: 'AAF201', value: '', type: 'input', disabled: false, unit: '' },
  {
    label: '销售订单号',
    key: 'AAF301',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: '',
    settings: {
      select: {
        remote: true,
        filterable: true
      }
    }
  },
  {
    label: '订单类型',
    key: 'AAF101',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '检定方式',
    key: 'AAF401',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '转换器型号',
    key: 'AAF1301',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  { label: '下位机版本', key: 'AAF4901', value: '', type: 'input', disabled: false, unit: '' },
  { label: '气密性压力', key: 'AAF1401', value: '', type: 'input', disabled: false, unit: 'MPa' },
  { label: '调试压力', key: 'AAF1701', value: '', type: 'input', disabled: false, unit: 'MPa' },
  {
    label: '单双流',
    key: 'AAF1101',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '温压补偿',
    key: 'AAF1201',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  }
]
export const nameplate_settings: SettingType[] = [
  { label: '生产订单许可', key: 'AAF2501', value: '', type: 'input', disabled: false, unit: '' },
  { label: '隔爆证号', key: 'AAF2601', value: '', type: 'input', disabled: false, unit: '' },
  {
    label: '产品型号',
    key: 'AAF601',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '通径',
    key: 'AAF701',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '公称压力',
    key: 'AAF801',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  { label: '接管内径', key: 'AAG101', value: '', type: 'input', disabled: false, unit: 'mm' },
  { label: '准确度等级', key: 'AAF2701', value: '', type: 'input', disabled: false, unit: '级' },
  { label: '电源DC', key: 'static', value: '24', type: 'input', disabled: false, unit: 'V' },
  { label: '防护等级', key: 'AAF2801', value: '', type: 'input', disabled: false, unit: '' },
  { label: '防爆等级', key: 'AAF2901', value: '', type: 'input', disabled: false, unit: '' },
  { label: '功率(低于)', key: 'AAF3001', value: '', type: 'input', disabled: false, unit: 'W' },
  { label: '工作压力下限', key: 'AAF1501', value: '', type: 'input', disabled: false, unit: 'MPa' },
  { label: '工作压力上限', key: 'AAF1601', value: '', type: 'input', disabled: false, unit: 'MPa' },
  { label: '环境温度下限', key: 'AAF3401', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '环境温度上限', key: 'AAF3301', value: '', type: 'input', disabled: false, unit: '℃' },
  {
    label: '流量范围下限',
    key: 'AAF3201',
    value: '',
    type: 'input',
    disabled: false,
    unit: 'm³/h'
  },
  {
    label: '流量范围上限',
    key: 'AAF3101',
    value: '',
    type: 'input',
    disabled: false,
    unit: 'm³/h'
  },
  { label: '介质温度下限', key: 'AAF3601', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '介质温度上限', key: 'AAF3501', value: '', type: 'input', disabled: false, unit: '℃' }
]
export const mountings_settings: SettingType[] = [
  { label: '温度转换器下限', key: 'AAF5101', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '温度转换器上限', key: 'AAF5001', value: '', type: 'input', disabled: false, unit: '℃' },
  {
    label: '压力转换器下限',
    key: 'AAF5301',
    value: '',
    type: 'input',
    disabled: false,
    unit: 'MPa'
  },
  {
    label: '压力转换器上限',
    key: 'AAF5201',
    value: '',
    type: 'input',
    disabled: false,
    unit: 'MPa'
  },
  {
    label: '换能器规格',
    key: 'AAF4801',
    value: '',
    type: 'select',
    options: [],
    disabled: false,
    unit: ''
  },
  {
    label: '表体编号',
    key: 'AAF5601',
    value: '',
    type: 'input',
    disabled: false,
    unit: ''
  },
  { label: '位号', key: 'AAF901', value: '', type: 'input', disabled: false, unit: '' },
  { label: '流量计算机', key: 'AAF1001', value: '', type: 'input', disabled: false, unit: '' }
]
export const remarks_settings: SettingType[] = [
  { label: '非标备注', key: 'AAF1801', value: '', type: 'textarea', disabled: false, unit: '' },
  { label: '逾期原因', key: 'AAF1901', value: '', type: 'textarea', disabled: false, unit: '' }
]
export const procedure_modules: Dictionary<string> = {
  AAG: '初装',
  AAP: '第三方检定',
  AAU: '返厂记录',
  AAT: '非标任务',
  AAE: '零流量分析',
  AAO: '流量检定',
  AAK: '气密性测试',
  AAN: '入库整理',
  AAA: '声延时声程计算器',
  AAH: '信号调试',
  AAM: '质量检验',
  AAZ: '转换器与流量计算机流程',
  AAY: '计量器具',
  AAL: '总装'
}
